<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div
        {
            text-align: center;
            text-decoration: line-through;
            /* line-height: 100px; 设置行高*/
        }
        p
        {
            /* text-indent: 20px; */
            text-indent: 2em;
            text-decoration: underline;
        }
        a
        {
            text-decoration: none;
        }
    </style>
</head>
<body>
    <h1>文本属性</h1>
    <h2 style = "text-align: left;">居左</h2>
    <h3 style = "text-align: center;">居中</h3>
    <h4 style = "text-align: right;">居右</h4>
    <h1>缩进</h1>
    <p>缩进测试</p>
    <div>
        测试文本装饰decoration(overline,line-through,underline，none)
    </div>
    <a href = "#">不跳转（测试无下划线）</a>
</body>
</html>